package com.hpeng.basic.dao.impl;


import org.springframework.stereotype.Component;

import com.hpeng.basic.dao.ProdStatusMstDao;
import com.hpeng.sys.model.ProdStatusMst;
import com.hpeng.util.GenericDaoImpl;
import com.hpeng.util.Pagination;
@Component("prodStatusMstDao")
public class ProdStatusMstDaoImpl extends GenericDaoImpl<ProdStatusMst, String> implements
		ProdStatusMstDao {

	public Pagination<ProdStatusMst> getPagination(int pageNumber,
			String[] hql, String order) {
		Pagination<ProdStatusMst> pagination = null;
		StringBuffer sb = new StringBuffer();
		try {
			for (String str : hql) {
				sb.append(str);
			}
			pagination = this.getPagination(sb.toString() + order, null, pageNumber);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return pagination;
	}


}
